package org.locker.service;

import org.locker.domain.ManagerWithdraw;
import org.locker.domain.vo.ManagerWithdrawVo;
import org.locker.domain.bo.ManagerWithdrawBo;
import org.locker.common.mybatis.core.page.TableDataInfo;
import org.locker.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Collection;
import java.util.List;

/**
 * 代理商提现记录Service接口
 *
 * @author winnie
 * @date 2023-10-11
 */
public interface IManagerWithdrawService extends IService<ManagerWithdraw>{

    /**
     * 查询代理商提现记录
     */
    ManagerWithdrawVo queryById(Long managerWithdrawId);

    /**
     * 查询代理商提现记录列表
     */
    TableDataInfo<ManagerWithdrawVo> queryPageList(ManagerWithdrawBo bo, PageQuery pageQuery);

    /**
     * 查询代理商提现记录列表
     */
    List<ManagerWithdrawVo> queryList(ManagerWithdrawBo bo);

    /**
     * 新增代理商提现记录
     */
    Boolean insertByBo(ManagerWithdrawBo bo);

    /**
     * 修改代理商提现记录
     */
    Boolean updateByBo(ManagerWithdrawBo bo);

    /**
     * 提现审批
     * @param bo
     * @return
     */
    Boolean audit(ManagerWithdrawBo bo);

    /**
     * 校验并批量删除代理商提现记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
